import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import Find from '@/views/Find'
import My from '@/views/My'
import Part from '@/views/Part'
import a1 from '@/views/a1'
import a2 from '@/views/a2'
Vue.use(VueRouter)
Vue.config.productionTip = false
const routes = [
  {
    path:"/find",
    component:Find,
    children:[
      {
        path:'a1',
        component:a1,
        children:[{
          path:'a2',
          component:a2
        }]
      }
    ]
  },
  {
    path:'/my',
    component:My
  },
  {
    path:'part',
    component:Part
  }
]
const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
